package 反射.reflect;

import org.junit.Test;

/**
 * 设计一个保存对象的简易版框架
 */
public class testFrame {
    @Test
    public void save() throws Exception {
        Student s1=new Student("吴彦祖",18,'男',180.1,"打球");
        Teacher t1 = new Teacher("彭于晏", 99.9);

        //需求：把任意对象的字段名和其对应的值等信息，保存在文件中去
        ObjectFrame.saveObject(s1);
        ObjectFrame.saveObject(t1);
    }
}
